home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1994 / MacHack 1994.toast / MacHack™94 / Miscellaneous / Randy Thelen / ThreadedBrot / AppSpecific / DocWindow.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-06-26  |  975 b   |  50 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        DocWindow.h
  3.  
  4.     Contains:    A simple document window
  5.                 
  6.     Written by: Dave Falkenburg
  7.     
  8.     Copyright:    © 1993-94 by Dave Falkenburg, all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.      
  12.  */
  13.  
  14. #ifndef        _DOCWINDOW_
  15. #define        _DOCWINDOW_
  16.  
  17. #ifndef        _WINDOW_
  18. #include    "Window.h"
  19. #endif
  20.  
  21. #ifndef        __THREADS__
  22. #include    <Threads.h>
  23. #endif
  24.  
  25. class    TDocWindow    :    public TWindow
  26.     {
  27. public:
  28.                         TDocWindow();
  29.     virtual             ~TDocWindow();
  30.  
  31.     virtual WindowPtr    MakeNewWindow(WindowPtr behindWindow);
  32.  
  33.     virtual    void        AdjustCursor(EventRecord * anEvent);
  34.     virtual void        Activate(Boolean activating);
  35.     virtual void        Draw(void);
  36.     virtual void        Click(EventRecord * anEvent);
  37.     virtual    void        KeyDown(EventRecord * anEvent);
  38.  
  39.     virtual void        AdjustForNewWindowSize(Rect * oldRect,Rect * newRect);
  40.  
  41.     virtual    Boolean        Close(void);
  42.     
  43.     virtual    OSErr        HandleDrag(DragTrackingMessage dragMessage,DragReference theDrag);
  44.     virtual    OSErr        HandleDrop(DragReference theDrag);
  45.  
  46. protected:
  47.     };
  48.  
  49. #endif
  50.